package club.cearnach.api.dao;

import club.cearnach.entity.Director;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/5/12 14:21
 */
public interface IDirectorDao extends JpaRepository<Director, Integer> {
    Optional<Director> findByName(String name);
    Optional<Director> findByPersonId(Integer id);

}
